<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    

    <script>
        // 剩余运算符 也叫扩展运算符
        // ...
        // let arr1 = ["张三","李四"];
        // let arr2 = ["王五"];
        // let arr3 = [...arr1,...arr2]
        // console.log(arr3)
        // console.log(...arr);
        // let obj = {
        //     one:"111",
        //     two:"222"
        // }
        // let test = {
        //     three:"333",
        //     one:"111",
        //     two:"222"
             
        // }
        // console.log(test)


        // 剩余运算符
        // function test(a,...b){
        //     console.log(a,b)
        // }
        // let more = [11,22,333,444,55]
        // let [one,...two] = more;
        

        // test(1,2,3,4,5)

        function test(a){
            console.log(...a);
        }

        test([100,200,300])
    </script>


</body>
</html>